<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
 
  <ui:composition template="/pages/templates/commonLayoutAdm.xhtml">

	
	<ui:define name="content">

	<h:form>

	<center>
		<p:messages id="rmvClinicaMsg" showDetail="false" autoUpdate="true" closable="true" style="width:70%;align:center;" globalOnly="true"/>
		<p:panel id="panelAdmClinica" header="Clínicas Cadastradas" style="width:70%;align:center;valign:middle;">
		
			<p:dataTable id="dataTableAdmClinicas" 
						value="#{beanVisualizarClinicas.clinicas}" 
						var="clinica"
						rowKey="#{clinica.codigo}"
						paginator="true" rows="10"
						paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
						rowsPerPageTemplate="10,20,30"
						selection="#{beanVisualizarClinicas.clinicaAdmSelecionada}"
						widgetVar="wdgAdmClinicas">
						
				<p:column headerText="Clínica" >
					<h:outputText value="#{clinica.nome}"></h:outputText>
				</p:column>
				<p:column headerText="Responsável" >
					<h:outputText value="#{clinica.nomeResponsavel}"></h:outputText>
				</p:column>
				
				<p:column selectionMode="single" />
			</p:dataTable>

			<!-- <p:commandButton value="Remover"
				
				action="#{beanVisualizarClinicas.removerClinicaIndxAdm()}"
				update="dataTableAdmClinicas">
				
			</p:commandButton> -->

		</p:panel>
	</center>
	
	
	</h:form>
	
</ui:define>

</ui:composition>

</html>